//
//  ViewController.m
//  phoneTest
//
//  Created by ewenlong on 14-3-19.
//  Copyright (c) 2014年 ewenlong. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
   // [self doPhone:[NSNull null]];
    _myView.layer.cornerRadius = 120;
    [_myView.layer setMasksToBounds:YES];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (IBAction)doPhone:(id)sender {
    //    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://4000509177"]];
    //    NSLog(@"%@",@"4000509177");
    NSURL *phoneURL = [NSURL URLWithString:@"tel:18654155015"];
    if ( !_phoneCallWebView ) {
        _phoneCallWebView = [[UIWebView alloc] initWithFrame:CGRectZero];
    }
    [_phoneCallWebView loadRequest:[NSURLRequest requestWithURL:phoneURL]];
}

@end
